package com.wzy.springresponsible;

import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wzy
 * @Date: 2022/01/22/16:07
 * @Description:
 */
@RestController
@Slf4j
public class TestConrtroller {

    @Autowired
    private ChainPatternDemo chainPatternDemo;


    private HttpRequest request;

    private HttpResponse response;

    @RequestMapping("/test")
    public void test(){
        log.info("start");
        chainPatternDemo.exec(request,response);
        log.info("end");
    }

}
